package sctu.edu.java.year2016.team08.zengshenjing.day20160523.chapter6_3;

import java.util.Date;

/**
 * Created by Administrator on 2016/5/23.
 * 格式化日期
 */

public class DateAndTime {
    public static void main(String[] args) {
        Date date=new Date();

        System.out.println("完整日期："+String.format("%tF",date));
        System.out.println(""+String.format("%tc",date));

    }
}
